﻿using DISP.Core;
using NUnit.Framework;
using System.Collections.Generic;

namespace DISP.Test.TestSuite.TestFixtures.DependencyInjectionServiceProviderTest.DISPBaseTest
{
    [TestFixture]
    public partial class DependencyInjectionServiceProviderBaseTest
    {
        private List<DependencyInjectionService> _serviceList;
        protected IoCContainerTypeEnum _ioCType;

        [TestFixtureSetUp]
        public virtual void FixtureSetUp()
        {
            this._serviceList = new List<DependencyInjectionService>();
            //Add elements to service list here
            DependencyInjectionServiceProvider.Initialize(this._ioCType, this._serviceList);
        }

        [TestFixtureTearDown]
        public virtual void FixtureTearDown()
        {
            this._serviceList.Clear();
            DependencyInjectionServiceProvider.Dispose();
        }
    }
}
